home *** CD-ROM | disk | FTP | other *** search
/ Total Network Tools 2002 / NextStepPublishing-TotalNetworkTools2002-Win95.iso / Archive / Web Server / Apache Configuration Editor.EXE / srm.conf-dist < prev    next >
Encoding:
Text File  |  1998-10-05  |  8.5 KB  |  251 lines

  1. # With this document, you define the name space that users see of your http
  2. # server.  This file also defines server settings which affect how requests are
  3. # serviced, and how results should be formatted. 
  4.  
  5. # See the tutorials at http://www.apache.org/ for
  6. # more information.
  7.  
  8. # Originally by Rob McCool; Adapted for Apache
  9.  
  10.  
  11. # DocumentRoot: The directory out of which you will serve your
  12. # documents. By default, all requests are taken from this directory, but
  13. # symbolic links and aliases may be used to point to other locations.
  14.  
  15. DocumentRoot "@@ServerRoot@@/htdocs"
  16.  
  17. # UserDir: The name of the directory which is appended onto a user's home
  18. # directory if a ~user request is recieved.
  19.  
  20. UserDir public_html
  21.  
  22. # DirectoryIndex: Name of the file or files to use as a pre-written HTML
  23. # directory index.  Separate multiple entries with spaces.
  24.  
  25. DirectoryIndex index.html
  26.  
  27. # FancyIndexing is whether you want fancy directory indexing or standard
  28.  
  29. FancyIndexing on
  30.  
  31. # AddIcon tells the server which icon to show for different files or filename
  32. # extensions
  33.  
  34. AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
  35.  
  36. AddIconByType (TXT,/icons/text.gif) text/*
  37. AddIconByType (IMG,/icons/image2.gif) image/*
  38. AddIconByType (SND,/icons/sound2.gif) audio/*
  39. AddIconByType (VID,/icons/movie.gif) video/*
  40.  
  41. AddIcon /icons/binary.gif .bin .exe
  42. AddIcon /icons/binhex.gif .hqx
  43. AddIcon /icons/tar.gif .tar
  44. AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
  45. AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
  46. AddIcon /icons/a.gif .ps .ai .eps
  47. AddIcon /icons/layout.gif .html .shtml .htm .pdf
  48. AddIcon /icons/text.gif .txt
  49. AddIcon /icons/c.gif .c
  50. AddIcon /icons/p.gif .pl .py
  51. AddIcon /icons/f.gif .for
  52. AddIcon /icons/dvi.gif .dvi
  53. AddIcon /icons/uuencoded.gif .uu
  54. AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
  55. AddIcon /icons/tex.gif .tex
  56. AddIcon /icons/bomb.gif core
  57.  
  58. AddIcon /icons/back.gif ..
  59. AddIcon /icons/hand.right.gif README
  60. AddIcon /icons/folder.gif ^^DIRECTORY^^
  61. AddIcon /icons/blank.gif ^^BLANKICON^^
  62.  
  63. # DefaultIcon is which icon to show for files which do not have an icon
  64. # explicitly set.
  65.  
  66. DefaultIcon /icons/unknown.gif
  67.  
  68. # AddDescription allows you to place a short description after a file in
  69. # server-generated indexes.
  70. # Format: AddDescription "description" filename
  71.  
  72. # ReadmeName is the name of the README file the server will look for by
  73. # default. Format: ReadmeName name
  74. #
  75. # The server will first look for name.html, include it if found, and it will
  76. # then look for name and include it as plaintext if found.
  77. #
  78. # HeaderName is the name of a file which should be prepended to
  79. # directory indexes. 
  80.  
  81. ReadmeName README
  82. HeaderName HEADER
  83.  
  84. # IndexIgnore is a set of filenames which directory indexing should ignore
  85. # Format: IndexIgnore name1 name2...
  86.  
  87. IndexIgnore .??* *~ *# HEADER* README* RCS
  88.  
  89. # AccessFileName: The name of the file to look for in each directory
  90. # for access control information.
  91.  
  92. AccessFileName .htaccess
  93.  
  94. # The following lines prevent .htaccess files from being viewed by
  95. # Web clients.  Since .htaccess files often contain authorization
  96. # information, access is disallowed for security reasons.  Comment
  97. # these lines out if you want Web visitors to see the contents of
  98. # .htaccess files.  If you change the AccessFileName directive above,
  99. # be sure to make the corresponding changes here.
  100.  
  101. <Files .htaccess>
  102. order allow,deny
  103. deny from all
  104. </Files>
  105.  
  106. # TypesConfig describes where the mime.types file (or equivalent) is
  107. # to be found.
  108.  
  109. TypesConfig conf/mime.types
  110.  
  111. # DefaultType is the default MIME type for documents which the server
  112. # cannot find the type of from filename extensions.
  113.  
  114. DefaultType text/plain
  115.  
  116. # AddEncoding allows you to have certain browsers (Mosaic/X 2.1+) uncompress
  117. # information on the fly. Note: Not all browsers support this.
  118.  
  119. AddEncoding x-compress Z
  120. AddEncoding x-gzip gz
  121.  
  122. # AddLanguage allows you to specify the language of a document. You can
  123. # then use content negotiation to give a browser a file in a language
  124. # it can understand.  Note that the suffix does not have to be the same
  125. # as the language keyword --- those with documents in Polish (whose
  126. # net-standard language code is pl) may wish to use "AddLanguage pl .po" 
  127. # to avoid the ambiguity with the common suffix for perl scripts.
  128.  
  129. AddLanguage en .en
  130. AddLanguage fr .fr
  131. AddLanguage de .de
  132. AddLanguage da .da
  133. AddLanguage el .el
  134. AddLanguage it .it
  135.  
  136. # LanguagePriority allows you to give precedence to some languages
  137. # in case of a tie during content negotiation.
  138. # Just list the languages in decreasing order of preference.
  139.  
  140. LanguagePriority en fr de
  141.  
  142. # Redirect allows you to tell clients about documents which used to exist in
  143. # your server's namespace, but do not anymore. This allows you to tell the
  144. # clients where to look for the relocated document.
  145. # Format: Redirect fakename url
  146.  
  147.  
  148. # Aliases: Add here as many aliases as you need (with no limit). The format is 
  149. # Alias fakename realname
  150.  
  151. # Note that if you include a trailing / on fakename then the server will
  152. # require it to be present in the URL.  So "/icons" isn't aliased in this
  153. # example.
  154.  
  155. Alias /icons/ "@@ServerRoot@@/icons/"
  156.  
  157. # ScriptAlias: This controls which directories contain server scripts.
  158. # Format: ScriptAlias fakename realname
  159.  
  160. #ScriptAlias /cgi-bin/ "@@ServerRoot@@/cgi-bin/"
  161.  
  162. # If you want to use server side includes, or CGI outside
  163. # ScriptAliased directories, uncomment the following lines.
  164.  
  165. # AddType allows you to tweak mime.types without actually editing it, or to
  166. # make certain files to be certain types.
  167. # Format: AddType type/subtype ext1
  168.  
  169. # For example, the PHP3 module (not part of the Apache distribution)
  170. # will typically use:
  171. #AddType application/x-httpd-php3 .phtml
  172. #AddType application/x-httpd-php3-source .phps
  173.  
  174. # AddHandler allows you to map certain file extensions to "handlers",
  175. # actions unrelated to filetype. These can be either built into the server
  176. # or added with the Action command (see below)
  177. # Format: AddHandler action-name ext1
  178.  
  179. # To use CGI scripts:
  180. #AddHandler cgi-script .cgi
  181.  
  182. # To use server-parsed HTML files
  183. #AddType text/html .shtml
  184. #AddHandler server-parsed .shtml
  185.  
  186. # Uncomment the following line to enable Apache's send-asis HTTP file
  187. # feature
  188. #AddHandler send-as-is asis
  189.  
  190. # If you wish to use server-parsed imagemap files, use
  191. #AddHandler imap-file map
  192.  
  193. # To enable type maps, you might want to use
  194. #AddHandler type-map var
  195.  
  196. # Action lets you define media types that will execute a script whenever
  197. # a matching file is called. This eliminates the need for repeated URL
  198. # pathnames for oft-used CGI file processors.
  199. # Format: Action media/type /cgi-script/location
  200. # Format: Action handler-name /cgi-script/location
  201.  
  202. # MetaDir: specifies the name of the directory in which Apache can find
  203. # meta information files. These files contain additional HTTP headers
  204. # to include when sending the document
  205.  
  206. #MetaDir .web
  207.  
  208. # MetaSuffix: specifies the file name suffix for the file containing the
  209. # meta information.
  210.  
  211. #MetaSuffix .meta
  212.  
  213. # Customizable error response (Apache style)
  214. #  these come in three flavors
  215. #
  216. #    1) plain text
  217. #ErrorDocument 500 "The server made a boo boo.
  218. #  n.b.  the (") marks it as text, it does not get output
  219. #
  220. #    2) local redirects
  221. #ErrorDocument 404 /missing.html
  222. #  to redirect to local url /missing.html
  223. #ErrorDocument 404 /cgi-bin/missing_handler.pl
  224. #  n.b. can redirect to a script or a document using server-side-includes.
  225. #
  226. #    3) external redirects
  227. #ErrorDocument 402 http://some.other_server.com/subscription_info.html
  228. #
  229.  
  230. # mod_mime_magic allows the server to use various hints from the file itself
  231. # to determine its type.
  232. #MimeMagicFile conf/magic
  233.  
  234. # The following directives disable keepalives and HTTP header flushes.
  235. # The first directive disables it for Netscape 2.x and browsers which
  236. # spoof it. There are known problems with these.
  237. # The second directive is for Microsoft Internet Explorer 4.0b2
  238. # which has a broken HTTP/1.1 implementation and does not properly
  239. # support keepalive when it is used on 301 or 302 (redirect) responses.
  240.  
  241. BrowserMatch "Mozilla/2" nokeepalive
  242. BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
  243.  
  244. # The following directive disables HTTP/1.1 responses to browsers which
  245. # are in violation of the HTTP/1.0 spec by not being able to grok a
  246. # basic 1.1 response.
  247.  
  248. BrowserMatch "RealPlayer 4\.0" force-response-1.0
  249. BrowserMatch "Java/1\.0" force-response-1.0
  250. BrowserMatch "JDK/1\.0" force-response-1.0
  251.